package com.ithong.drug.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ithong.drug.utils.DateUtil;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 退货
 */
@Data
@TableName("returngoods")
@ToString
public class Returngoods {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String dname;
    private Integer count;
    private String reason;
    private Float total;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date returntime; //生产时间

    //生产时间转换为年月日
}
